<?xml version="1.0" encoding="UTF-8"?>
<jsp:root version="1.2" xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html" xmlns:jsp="http://java.sun.com/JSP/Page" xmlns:ui="http://www.sun.com/web/ui">
    <jsp:directive.page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"/>
    <f:view>
        <ui:page binding="#{listadoPreAprobacion.page1}" id="page1">
            <ui:html binding="#{listadoPreAprobacion.html1}" id="html1">
                <ui:head binding="#{listadoPreAprobacion.head1}" id="head1">
                    <ui:link binding="#{listadoPreAprobacion.link1}" id="link1" url="/resources/stylesheet.css"/>
                </ui:head>
                <ui:body binding="#{listadoPreAprobacion.body1}" id="body1" style="-rave-layout: grid">
                    <ui:form binding="#{listadoPreAprobacion.form1}" id="form1">
                        <div style="position: absolute; left: 0px; top: 0px">
                            <jsp:include page="encab1.jspf"/>
                        </div>
                        <ui:staticText binding="#{listadoPreAprobacion.titulo1}" id="titulo1"
                            style="color: rgb(108, 154, 154); font-family: 'Times New Roman','Times',serif; font-size: 18px; left: 264px; top: 144px; position: absolute; text-align: center" text="Listado de Solicitudes en Pre Aprobacion"/>
                        <ui:label binding="#{listadoPreAprobacion.label1}" id="label1" style="left: 96px; top: 192px; position: absolute" text="Producto:"/>
                        <ui:label binding="#{listadoPreAprobacion.label2}" id="label2" style="left: 96px; top: 216px; position: absolute" text="Sublinea:"/>
                        <ui:label binding="#{listadoPreAprobacion.label3}" id="label3" style="left: 96px; top: 240px; position: absolute" text="Tipo Solicitud:"/>
                        <ui:staticText binding="#{listadoPreAprobacion.staticText1}" id="staticText1" style="left: 192px; top: 192px; position: absolute" text="#{listadoPreAprobacion.sct0004DataProvider.value['DSCRPCION']}"/>
                        <ui:staticText binding="#{listadoPreAprobacion.staticText2}" id="staticText2" style="left: 192px; top: 216px; position: absolute" text="#{listadoPreAprobacion.sct0019DataProvider.value['DSCRPCIONSBLNEA']}"/>
                        <ui:staticText binding="#{listadoPreAprobacion.staticText3}" id="staticText3" style="left: 192px; top: 240px; position: absolute" text="#{listadoPreAprobacion.sct0021DataProvider.value['DSCRPCIONTPOSLCTUD']}"/>
                        <ui:table binding="#{listadoPreAprobacion.table1}" clearSortButton="true" deselectMultipleButton="true" id="table1"
                            paginateButton="true" paginationControls="true" selectMultipleButton="true" sortPanelToggleButton="true"
                            style="left: 96px; top: 312px; position: absolute" title="Tabla" width="1007">
                            <script><![CDATA[
/* ----- Functions for Table Preferences Panel ----- */
       /*
       * Toggle the table preferences panel open or closed
       */
       function togglePreferencesPanel() {
       var table = document.getElementById("form1:table1");
       table.toggleTblePreferencesPanel();
       }
       /* ----- Functions for Filter Panel ----- */
       /*
       * Return true if the filter menu has actually changed,
       * so the corresponding event should be allowed to continue.
       */
       function filterMenuChanged() {
       var table = document.getElementById("form1:table1");
       return table.filterMenuChanged();
       }
       /*
       * Toggle the custom filter panel (if any) open or closed.
       */
       function toggleFilterPanel() {
       var table = document.getElementById("form1:table1");
       return table.toggleTableFilterPanel();
       }
       /* ----- Functions for Table Actions ----- */
       /*
       * Initialize all rows of the table when the state
       * of selected rows changes.
       */
       function initAllRows() {
       var table = document.getElementById("form1:table1");
       table.initAllRows();
       }
       /*
       * Set the selected state for the given row groups
       * displayed in the table.  This functionality requires
       * the 'selectId' of the tableColumn to be set.
       *
       * @param rowGroupId HTML element id of the tableRowGroup component
       * @param selected Flag indicating whether components should be selected
       */
       function selectGroupRows(rowGroupId, selected) {
       var table = document.getElementById("form1:table1");
       table.selectGroupRows(rowGroupId, selected);
       }
       /*
       * Disable all table actions if no rows have been selected.
       */
       function disableActions() {
       // Determine whether any rows are currently selected
       var table = document.getElementById("form1:table1");
       var disabled = (table.getAllSelectedRowsCount() > 0) ? false : true;
       // Set disabled state for top actions
       document.getElementById("form1:table1:tableActionsTop:deleteTop").setDisabled(disabled);
       // Set disabled state for bottom actions
       document.getElementById("form1:table1:tableActionsBottom:deleteBottom").setDisabled(disabled);
       }
       function disableChecks(){
        document.getElementById("form1:table1:tableRowGroup1:0:tableColumn4:checkbox1").setSelected(false);
       }
]]></script>
                            <ui:tableRowGroup binding="#{listadoPreAprobacion.tableRowGroup1}" id="tableRowGroup1" rows="10"
                                selected="#{listadoPreAprobacion.selectedState}" sourceData="#{listadoPreAprobacion.sct0022DataProvider}" sourceVar="currentRow">
                                <ui:tableColumn align="center" binding="#{listadoPreAprobacion.tableColumn4}" id="tableColumn4"
                                    onClick="setTimeout('initAllRows()',0)" selectId="checkbox1" width="48">
                                    <ui:checkbox binding="#{listadoPreAprobacion.checkbox1}" id="checkbox1" selected="#{listadoPreAprobacion.selected}" selectedValue="#{listadoPreAprobacion.selectedValue}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{listadoPreAprobacion.tableColumn1}" headerText="No. Solicitud" id="tableColumn1" sort="NMROSLCTUD">
                                    <ui:staticText binding="#{listadoPreAprobacion.staticText4}" id="staticText4" text="#{currentRow.value['NMROSLCTUD']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{listadoPreAprobacion.tableColumn2}" headerText="NIT" id="tableColumn2" sort="NIT">
                                    <ui:staticText binding="#{listadoPreAprobacion.staticText5}" id="staticText5" text="#{currentRow.value['NIT']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{listadoPreAprobacion.tableColumn5}" headerText="Nombre" id="tableColumn5" sort="NMBRE">
                                    <ui:staticText binding="#{listadoPreAprobacion.staticText7}" id="staticText7" text="#{currentRow.value['NMBRE']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{listadoPreAprobacion.tableColumn8}" headerText="Producto" id="tableColumn8" sort="CDGOPRDCTO">
                                    <ui:staticText binding="#{listadoPreAprobacion.staticText9}" id="staticText9" text="#{currentRow.value['CDGOPRDCTO']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{listadoPreAprobacion.tableColumn9}" headerText="Sublinea" id="tableColumn9" sort="CDGOSBLNEA">
                                    <ui:staticText binding="#{listadoPreAprobacion.staticText10}" id="staticText10" text="#{currentRow.value['CDGOSBLNEA']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{listadoPreAprobacion.tableColumn10}" headerText="Tipo Solicitud" id="tableColumn10" sort="CDGOTPOSLCTUD">
                                    <ui:staticText binding="#{listadoPreAprobacion.staticText11}" id="staticText11" text="#{currentRow.value['CDGOTPOSLCTUD']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{listadoPreAprobacion.tableColumn3}" headerText="Monto" id="tableColumn3">
                                    <ui:staticText binding="#{listadoPreAprobacion.staticText6}" id="staticText6" text="#{listadoPreAprobacion.monto}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{listadoPreAprobacion.tableColumn6}" headerText="Puntaje Score" id="tableColumn6" sort="PNTJEMDLO">
                                    <ui:staticText binding="#{listadoPreAprobacion.staticText8}" id="staticText8" text="#{currentRow.value['PNTJEMDLO']}"/>
                                </ui:tableColumn>
                                <ui:tableColumn binding="#{listadoPreAprobacion.tableColumn7}" headerText="Politica" id="tableColumn7">
                                    <ui:hyperlink action="#{listadoPreAprobacion.hyperlink1_action}" binding="#{listadoPreAprobacion.hyperlink1}"
                                        id="hyperlink1" text="Ver Politicas"/>
                                </ui:tableColumn>
                            </ui:tableRowGroup>
                        </ui:table>
                        <ui:button action="#{listadoPreAprobacion.aprove_action}" binding="#{listadoPreAprobacion.aprove}" id="aprove" mini="true"
                            primary="true" style="left: 95px; top: 288px; position: absolute; width: 96px" text="Enviar a Aprobar"/>
                        <ui:button action="#{listadoPreAprobacion.menu_action}" binding="#{listadoPreAprobacion.menu}" id="menu" mini="true" primary="true"
                            style="left: 47px; top: 120px; position: absolute; width: 71px" text="Cerrar"/>
                        <ui:button action="#{listadoPreAprobacion.back_action}" binding="#{listadoPreAprobacion.back}" id="back" mini="true" primary="true"
                            style="left: 143px; top: 120px; position: absolute; width: 71px" text="Regresar"/>
                        <ui:button action="#{listadoPreAprobacion.reject_action}" binding="#{listadoPreAprobacion.reject}" id="reject" mini="true"
                            primary="true" style="left: 287px; top: 288px; position: absolute; width: 72px" text="Rechazar"/>
                        <ui:alert binding="#{listadoPreAprobacion.alert1}" id="alert1" style="left: 600px; top: 120px; position: absolute; width: 166px" type="information"/>
                        <ui:messageGroup binding="#{listadoPreAprobacion.messageGroup1}" id="messageGroup1" style="left: 552px; top: 192px; position: absolute; width: 238px"/>
                    </ui:form>
                </ui:body>
            </ui:html>
        </ui:page>
    </f:view>
</jsp:root>
